<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%-- 登陆 --%>
<logic:notPresent name="userInfo" scope="session">
    <%
        request.getRequestDispatcher("login.jsp").forward(request,response);
     %>
</logic:notPresent>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>短信平台</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
   	<jsp:include page="index-core.jsp" flush="true" />
   	<jsp:include page="index-hzx.jsp" flush="true" />
   	<jsp:include page="index-cxh.jsp" flush="true" />
   	<jsp:include page="index-mxf.jsp" flush="true" />
    
	<script type="text/javascript">
 
	  //alert(cun);
	  Ext.onReady(function(){
		  
           <%-- 加载效果 --%>
			setTimeout(function() {
				Ext.get('loading').remove();
				Ext.get('loading-mask').fadeOut({remove:true});
			}, 1000); 
	       <%-- 开启提示 --%>
	        Ext.QuickTips.init() ;
	        //Ext.QuickTips.enable()  ;
			Ext.form.Field.prototype.msgTarget = "side" ;
			<%-- 实例化主页 --%>
		    var _index= new IndexPage();
		    <%-- 窗体大小改变延时事件 --%>
	        window.onresize=function(){
	        <%-- 过100毫秒在执行  --%>
	        setTimeout(_index.onActiveTabSize,0);
	        };
	  });
	</script>
  </head>
  
  <body>
         <div id="loading">
             <div class="loading-indicator">
                  <img src="images/extanim32.gif" alt="" width="32" height="32" style="margin-right:8px;" align="absmiddle" />
        	<span id="wlcome">欢迎 ${sessionScope.userInfo.userName} 登录本系统，正在加载，请稍候......</span>
                  
             </div>
         </div>
         <!-- <span>顶部在这里?</span> -->
         <div id="loading-mask">
         </div>
         <input type="hidden" value="${sessionScope.userInfo.userName}" id="userName" />
         <input type="hidden" value="${sessionScope.userInfo.userTypeStr}" id="userTypeStr" />
         <input type="hidden" value="${sessionScope.userInfo.userId}" id="userId" />
  </body>
</html>
